package com.fz.mapper;

import com.fz.entity.Product;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by Z-C-Y on 2018-03-07.
 * 艺术家管理表
 */
@Service
public interface AdminHproductMapper {
    /*拿到商品表的数据*/
    public List<Product> queryProduct();
    //有了pageSize和startIndex，就可以拿到每页的数据
    @Select("select * from product limit #{startIndex},#{pageSize}")
   public List<Product> queryProductData(@Param("startIndex") int startIndex,@Param("pageSize") int pageSize);
}
